package com.hskn.hss.module.oilDevice.to;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hskn.hss.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 耗油报表TO
 *
 * @author zcy
 * @date 2021/10/9 13:21
 */
@Data
@ApiModel(value = "耗油报表-TO", description = "耗油报表-TO")
public class OilConsumeTO extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "车辆类型ID", name = "carTypeId", example = "02eb9c47bd9944c788b2f00407efbc3e")
    private String carTypeId;
    @ApiModelProperty(value = "机构ID", name = "deptidforcarId", example = "02eb9c47bd9944c788b2f00407efbc3e")
    private String deptidforcarId;
    @ApiModelProperty(value = "机构类型", name = "deptidforcarType", example = "项目")
    private String deptidforcarType;
    @ApiModelProperty(value = "车辆ID", name = "carId", example = "02eb9c47bd9944c788b2f00407efbc3e")
    private String carId;
    @ApiModelProperty(value = "时间类型", name = "dateType", example = "1,2")
    private Integer dateType;
    @ApiModelProperty(value = "开始时间", name = "startTime", example = "2021-09-22")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date startTime;
    @ApiModelProperty(value = "结束时间", name = "endTime", example = "2021-09-22")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endTime;
    /**
     * 图表机构查询用参数
     */
    @ApiModelProperty(value = "机构ID集合", name = "deptidforcarId", example = "02eb9c47bd9944c788b2f00407efbc3e")
    private List<String> depIds;
    @ApiModelProperty(value = "机构ID", name = "deptidforcarId", example = "02eb9c47bd9944c788b2f00407efbc3e")
    private String depId;
}
